import exp from "constants";

export interface HospitalSetListItem extends IAddHospitalParam {
    id: number;
    signKey: string;
}

export type HospitalSetList = HospitalSetListItem[]

export interface GetHospitalSetListResponse {
    records: HospitalSetList;
    pages: number
    total: number
    current: number
    size: number
}

export interface SearchParam {
    hosname?: string;
    hoscode?: string
}

export interface GetHospitalSetListParam extends SearchParam {
    page: number,
    limit: number
}

export interface IAddHospitalParam {
    hosname: string;
    hoscode: string;
    apiUrl: string;
    contactsName: string
    contactsPhone: string
}

// 修改医院参数类型
export interface IUpdateHospitalParam extends IAddHospitalParam {
    id: number
}
